FROM registry.cn-hangzhou.aliyuncs.com/ycg-base/go-stark-tools:v1.19.4-20211210 AS build

ARG BRANCH

WORKDIR /usr/local/go/src/git.mycaigou.com/gfyx/micro-gfyx-user-service

ADD . /usr/local/go/src/git.mycaigou.com/gfyx/micro-gfyx-user-service

RUN branch=$BRANCH make

RUN mkdir -p /webser/file

FROM registry.cn-hangzhou.aliyuncs.com/ycg-base/alpine:v2-sqlclient

LABEL stark-version="4.0"

COPY --from=build /usr/local/go/src/git.mycaigou.com/gfyx/micro-gfyx-user-service /usr/local/bin

CMD micro-gfyx-user-service
